package com.chushouya.product.dto.admin.category;

import com.general.framework.core.enums.StatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("商品分类列表")
public class CategoryListDTO {

    @ApiModelProperty("分类ID")
    private Long categoryId;

    @ApiModelProperty("商品分类名字")
    private String categoryName;

    @ApiModelProperty("图片")
    private String categoryImage;

    @ApiModelProperty("sort")
    private Integer sort;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("状态")
    private String statusDesc;

    public String getStatusDesc() {
        return StatusEnum.getDesc(this.status);
    }

}
